package com.sikaryofficial.backend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sikaryofficial.backend.domain.entity.BrandTasteIndex;
import com.sikaryofficial.backend.domain.vo.IndexStatisticsVO;
import com.sikaryofficial.backend.mapper.BrandTasteIndexMapper;
import com.sikaryofficial.backend.service.IBrandTasteIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 品牌口味评价指标Service业务层处理
 *
 * @author qinjinyuan
 * @date 2023-11-01
 */
@Service
public class BrandTasteIndexServiceImpl extends ServiceImpl<BrandTasteIndexMapper, BrandTasteIndex> implements IBrandTasteIndexService {
    @Autowired
    private BrandTasteIndexMapper brandTasteIndexMapper;

    /**
     * 评价指标统计
     *
     * @param brandTasteId
     * @return
     */
    @Override
    public List<IndexStatisticsVO> evaluateIndexStatistics(Long brandTasteId) {
        return brandTasteIndexMapper.evaluateIndexStatistics(brandTasteId);
    }
}
